<%@ page contentType="text/html;charset=GBK"%>   
<%@ page import="java.io.PrintWriter"%>   
<jsp:directive.page import="chart.ChartImpl"/>   
<html>   
<head>   
<title>   
</title>   
<%
   // Horizontal Barchart
   String fileNameBarHor=ChartImpl.generateBarChartHorizontal(session,new PrintWriter(out),640,480,Integer.parseInt(request.getParameter("pollid")),Integer.parseInt(request.getParameter("questionid")));   
   String graphURLBarHor = request.getContextPath() + "/servlet/DisplayChart?filename=" + fileNameBarHor;   
   %>   
</head>   
<body bgcolor="#ffffff">   
<table align="center" width="580" border="0" cellspacing="0" cellpadding="0">   
<tr>   
<td>   
<img src=" <%= graphURLBarHor %>"width="640" height="480" border=0 >   
</td>   
</tr>   
</table>   
</body>   
</html>  